import request from '../utils/axios';

export const getSubjects = () => request.get('/subject/subjects', {});

export const addSubject = (data) => {
  return request.post('/subject/subjects', data)
}

export const updateSubject = (data) => {
  return request.put(`/subject/subjects`, data)
}

export const deleteSubject = (id) => {
  return request.delete(`/subject/subjects/${id}`)
}